interface Student {
    id: string;
    account: string;
    password: string;
    name: string;
    email: string;
    phone: string;
    classId: number;  //班级id
    className: string;
    address: string;
    departmentId: number; //院系id
    departmentName: string;
    loginTime: string;  //登录时间
}
interface Admin {
    id: string;
    account: string;
    password: string;
    name: string;
    email: string;
    phone: string;
    loginTime: string;  //登录时间
}

interface Department {
    id: string;
    name: string;
    description: string;
}

interface Classroom {
    id: string;
    name: string;
    departmentId: string;
    departmentName: string;
    description: string;
}
//课程
interface Course {
    id: string;
    name: string;
    departmentId: string;
    description: string;
    xq: number; //课程在周几
    start: number; //课程开始节数
    end: number; //课程结束节数
    creditHours: number;
    teacher: string;
    maxNum: number; //最大人数
    currentNum?: number; //当前人数
    isSelected?: boolean; // 是否已经选修
}
// 课程分配，表示某个课程被分配给了哪个学院
interface CourseAssignment {
    id: string;
    courseId: string; //课程id
    departmentId: string; //学院id
    departmentName?: string;
    courseName?: string;
}
//课程选修
interface CourseSelection {
    id: string;
    studentId: string;
    courseId: string;
    departmentId: string;
    createTime: string;
}

interface Res<T> {
    code: number;
    msg: string;
    flag: boolean;
    data: T;
}

export type {Course,CourseAssignment,Student,Res,Admin,Department,Classroom,CourseSelection};
